<style lang="scss">
	page{
		background: #F5F5F5;
		.all{
			width: 750upx;
			// padding-top: 20upx;
			.top{
				width: 750upx;
				padding-bottom: 44upx;
				// background: #cf4052;
				display: flex;
				justify-content: space-between;
				.top_user{
					padding-top: 180upx;
					margin-left: 28upx;
					display: flex;
					.top_user_image{
						width: 108upx;
						height: 108upx;
						border: 6upx solid #FFFFFF;
						border-radius: 50%;
					}
					.top_user_text{
						margin-left: 30upx;
						margin-top: 4upx;
						width: 300upx;
						.top_user_text_top{
							display: flex;
							.top_user_text_top_name{
								// max-width: 400upx;
								height: 50upx;
								font-size: 36upx;
								font-weight: bold;
								color: #FFFFFF;
								line-height: 50upx;
								overflow:hidden;
								text-overflow:ellipsis;
								white-space:nowrap;
							}
							.top_user_text_image{
								width: 90upx;
								height: 36upx;
								margin-top: 8upx;
								margin-left: 10upx;
							}
							.top_user_text_images{
								width: 40upx;
								height: 40upx;
								margin-top: 5upx;
								margin-left: 0upx;
							}
						}
						.top_user_text_you{
							display: inline-block;
							max-width: 400upx;
							overflow:hidden;
							text-overflow:ellipsis;
							white-space:nowrap;
							// padding: 2upx 22upx;
							// background: #535876;
							// border-radius: 21upx;
							// border: 2upx solid #FFFFFF;
							margin-top: 16upx;
							font-size: 22upx;
							font-weight: 400;
							color: #FFFFFF;
							line-height: 32upx;
						}
					}
					.top_user_images{
						width: 38upx;
						height: 48upx;
						margin-left: 0upx;
						margin-top: 10upx;
					}
					.top_user_image_new{
						width: 12upx;
						height: 12upx;
						background: #DC374D;
						border: 4upx solid #FFFFFF;
						border-radius: 50%;
						margin-left: 0upx;
						margin-top: 0upx;
					}
				}
				.top_bj{
					width: 704upx;
					height: 162upx;
					margin-left: 23upx;
					margin-top: 32upx;
					.top_bj_image{
						width: 704upx;
						height: 160upx;
					}
					.top_bj_box{
						width: 704upx;
						height: 162upx;
						position: absolute;
						z-index: 1;
						.top_bj_box_top{
							height: 44upx;
							font-size: 32upx;
							font-weight: bold;
							color: #FCE2C7;
							line-height: 44upx;
							margin-left: 52upx;
							margin-top: 40upx;
						}
						.top_bj_box_yj{
							height: 34upx;
							font-size: 24upx;
							font-weight: 400;
							color: #FFFFFF;
							line-height: 34upx;
							margin-top: 14upx;
							margin-left: 52upx;
						}
						.top_bj_box_bj{
							float: right;
							right: 40upx;
							width: 40upx;
							height: 40upx;
							margin-top: -96upx;
							margin-left: 0upx;
						}
					}
				}
				.assets{
					.assets_img{
						width: 50upx;
						height: 50upx;
						margin-top: 16upx;
					}
					.assets_text{
						color: #aba8a1;
						font-size: 28upx;
						line-height: 35px;
					}
					width: 200upx;
					height: 80upx;
					display: flex;
					background: #333333;
					justify-content: space-around;
					margin-top: 66upx;
					border-radius: 50upx 0upx 0upx 50upx;
				}
			}
			.list{
				margin-top: 14upx;
				width: 750upx;
				background: #FFFFFF;
				.list_box{
					width: 700upx;
					padding: 0 25upx;
					display: flex;
					.list_box_image{
						width: 52upx;
						height: 60upx;
						margin-top: 15upx;
					}
					.list_box_text{
						width: 620upx;
						padding: 22upx 0;
						border-bottom: 1upx solid #DDDDDD;
						height: 44upx;
						font-size: 32upx;
						font-weight: bold;
						color: #333333;
						line-height: 44upx;
						margin-left: 22upx;
					}
					.list_box_images{
						width: 22upx;
						height: 32upx;
						float: right;
						right: 0;
						margin-top: 28upx;
					}
				}
			}
			.anniu{
				width: 750upx;
				height: 92upx;
				background: #A02731;
				position: fixed;
				bottom: 0upx;
				text-align: center;
				line-height: 92upx;
				color: #FFFFFF;
				font-size: 32upx;
			}
			.tabBar{
				width: 750upx;
				height: 100upx;
				position: fixed;
				bottom: 0;
				display: flex;
				z-index: 1;
				background: #FFFFFF;
				.tabBar_box{
					width: 187.5upx;
					margin-top: 16upx;
					.tabBar_box_image{
						width: 44upx;
						height: 44upx;
						margin-left: 71.75upx;
					}
					.tabBar_box_images{
						width: 66upx;
						height: 66upx;
						border-radius: 50%;
						border: 6upx solid rgba(206, 206, 206, 0.11);
						// margin-top: -10upx;
						margin-left: 60.75upx;
					}
					.tabBar_box_text{
						width: 187.5upx;
						text-align: center;
						height: 28upx;
						font-size: 20upx;
						font-weight: bold;
						color: #A02731;
						line-height: 28upx;
					}
					.tabBar_box_text_new{
						width: 187.5upx;
						text-align: center;
						height: 28upx;
						font-size: 20upx;
						font-weight: 400;
						color: #666666;
						line-height: 28upx;
					}
				}
			}
		}
	}
</style>
<template>
	<view class="all">
		<view style="width: 750upx;height: 376upx;">
			<image src="../../static/shangmen/13.png" style="width: 750upx;height: 376upx;position: absolute;"></image>
			<view style="width: 750upx;height: 176upx;text-align: center;font-size: 36upx;line-height: 176upx;position: absolute;z-index: 1;color: #fff;">我的</view>
			<view class="top" style="z-index: 1;position: absolute;">
				<view class="top_user">
					<image class="top_user_image" @click.stop="save_tap" :src="list_data.avatar_url"></image>
					<view class="top_user_text" @click.stop="save_tap">
						<view class="top_user_text_top">
							<view style="min-width: 250upx;" class="top_user_text_top_name">{{list_data.nickname}}</view>
							<!-- <view style="margin-left: 0upx;">
								<image src="../../static/vip/VIP-putong.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							</view> -->
						</view>
						<view style="font-size: 24upx;color: #fff;display: flex;"> 级别： {{list_data.vip_name}}</view>
						<!-- <view class="top_user_text_you" style="display: flex;">
							<view style="color: #FFFFFF;">账号：{{list_data.account}}</view>
						</view> -->
				</view>
				</view>
				<!-- <view v-if="codes == 1" class="assets" @click="assets_tap">
					<image src="../../static/icon/5.png" class="assets_img"></image>
					<view class="assets_text">我的资产</view>
				</view> -->
			</view>
		</view>
		<!-- <view class="top" style="background: #cf4052;">
			<view class="top_user">
				<image class="top_user_image" @click.stop="save_tap" :src="list_data.avatar_url"></image>
				<view class="top_user_text" @click.stop="save_tap">
					<view class="top_user_text_top">
						<view style="min-width: 250upx;" class="top_user_text_top_name">{{list_data.nickname}}</view>
						<view style="margin-left: 0upx;">
							<image v-if="list_data.vip == 0" src="../../static/vip/VIP-putong.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							<image v-if="list_data.vip == 1" src="../../static/vip/vip-huiyuan.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							<image v-if="list_data.vip == 2" src="../../static/vip/VIP-01.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							<image v-if="list_data.vip == 3" src="../../static/vip/VIP-02.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							<image v-if="list_data.vip == 4" src="../../static/vip/VIP-03.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							<image v-if="list_data.vip == 5" src="../../static/vip/VIP-04.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
							<image v-if="list_data.vip == 6" src="../../static/vip/VIP-05.png" style="width: 50upx;height: 50upx;margin: 0 0 0 -40upx;"></image>
						</view>
					</view>
					<view style="font-size: 24upx;color: #fff;display: flex;"> 级别： {{list_data.vip_name}}</view>
					<view class="top_user_text_you" style="display: flex;">
						<view style="color: #FFFFFF;">账号：{{list_data.account}}</view>
					</view>
			</view>
			</view>
			<view v-if="codes == 1" class="assets" @click="assets_tap">
				<image src="../../static/icon/5.png" class="assets_img"></image>
				<view class="assets_text">我的资产</view>
			</view>
		</view> -->
		<view style="width: 610upx;padding: 30upx 40upx;border-radius: 20upx;background: #fff;margin-top: 25upx;margin-left: 30upx;">
			<view style="display: flex;justify-content: space-between;width: 610upx;padding-bottom: 20upx;" @click="order_tap(0)">
				<view style="font-size: 32upx;font-weight: bold;">我的订单</view>
				<!-- <view style="font-size: 30upx;color: #999;">查看更多</view> -->
				<image src="../../static/shangmen/22.png" style="width: 32upx;height: 28upx;margin-top: 4upx;"></image>
			</view>
			<view style="display: flex;padding-top: 25upx;">
				<view style="width: 152upx;"  @click="order_tap(0)">
					<image src="../../static/shangmen/14.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;color: #333333;"> 全部 </view>
				</view>
				<view style="width: 152upx;"  @click="order_tap(2)">
					<image src="../../static/shangmen/15.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 待服务 </view>
				</view>
				<view style="width: 152upx;"  @click="order_tap(3)">
					<image src="../../static/shangmen/16.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 已服务 </view>
				</view>
				<view style="width: 152upx;"  @click="order_tap(4)">
					<image src="../../static/shangmen/17.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 退款/售后 </view>
				</view>
			</view>
		</view>
		<view style="width: 610upx;padding: 30upx 40upx;border-radius: 20upx;background: #fff;margin-top: 25upx;margin-left: 30upx;">
			<view style="display: flex;justify-content: space-between;width: 700upx;padding-bottom: 20upx;margin-left: 30upx;">
				<view style="font-size: 32upx;font-weight: bold;">我的服务</view>
			</view>
			<view style="display: flex;flex-direction: row;flex-wrap: wrap;">
				<!-- <view style="width: 152upx;margin-top: 50upx;" @click="set">
					<image src="../../static/shangmen/14.png" style="width: 50upx;height: 50upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 收付款设置 </view>
				</view> -->
				<view style="width: 152upx;margin-top: 50upx;" @click="address">
					<image src="../../static/shangmen/18.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 收货地址 </view>
				</view>
				<view style="width: 152upx;margin-top: 50upx;" @click="collect">
					<image src="../../static/shangmen/19.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 我的收藏 </view>
				</view>
				<view style="width: 152upx;margin-top: 50upx;" @click="coupons">
					<image src="../../static/shangmen/yhq.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 我的优惠券 </view>
				</view>
				<view style="width: 152upx;margin-top: 50upx;" @click="my_car">
					<image src="../../static/shangmen/car.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 我的车型 </view>
				</view>
				<view style="width: 152upx;margin-top: 50upx;" @click="guide">
					<image src="../../static/shangmen/20.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 隐私协议 </view>
				</view>
				<view style="width: 152upx;margin-top: 50upx;" @click="about">
					<image src="../../static/shangmen/21.png" style="width: 60upx;height: 60upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 关于我们 </view>
				</view>
				
				<!-- <view style="width: 152upx;margin-top: 50upx;" @click="sets_tap">
					<image src="../../static/shangmen/14.png" style="width: 50upx;height: 50upx;margin-left: 46upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 账号设置 </view>
				</view> -->
				<!-- <view style="width: 175upx;margin-top: 50upx;" @click="set_tap">
					<image src="../../static/icon/32.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 账号安全 </view>
				</view> -->
				<!-- <view v-if="friends!=0" style="width: 175upx;margin-top: 50upx;" @click="plural_tap">
					<image src="../../static/icon/18.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 一键复投 </view>
				</view> -->
				<!-- <view v-if="codes == 1" style="width: 175upx;margin-top: 50upx;" @click="team_tap">
					<image src="../../static/icon/34.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 我的团队 </view>
				</view>
				<view style="width: 175upx;margin-top: 50upx;" @click="promotion">
					<image src="../../static/icon/17.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 邀请好友 </view>
				</view> -->
				
				<!-- <view style="width: 175upx;margin-top: 50upx;" @click="about">
					<image src="../../static/icon/20.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 关于我们 </view>
				</view> -->
				<!-- <view style="width: 175upx;margin-top: 50upx;" @click="announcement(list_data.money)">
					<image src="../../static/icon/33.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 平台公告 </view>
				</view>
				<view style="width: 175upx;margin-top: 50upx;" @click="tiuchu">
					<image src="../../static/icon/30.png" style="width: 50upx;height: 50upx;margin-left: 62upx;"></image>
					<view style="font-size: 24upx;margin-top: 10upx; text-align: center;"> 退出登录 </view>
				</view> -->
			</view>
		</view>
		<button open-type="contact" style="width: 650upx;height: 80upx;text-align: center;line-height: 80upx;color: #fff;background: #1C336B;font-size: 30upx;position: fixed;bottom: 20upx;margin-left: 50upx;border-radius: 30upx;">在线客服</button>
	</view>
</template>
<script>
	// import wx from '../../common/jWeixin.js';
	import urlConfig from 'common/config.js';
	export default {
		data() {
			return {
				moneys:0,
				page:1,
				is_lose:'',
				status:1,
				list_data:[],
				avatar_url:'',
				code:'',
				customer:'',
				vip:0,
				phone:'',
				is_status:'',
				friends:0,
				codes:0,
			}
		},
		onShow() {
			// if( !uni.getStorageSync('mobile') ) {
			// 	this.user_login_code_api()
			// 	return
			// }
			if( !uni.getStorageSync('access_token') ) {
				uni.showModal({
					title: '提示',
					content: '请先登录',
					cancelText:'返回',
					confirmColor:'#A02731',
					success: function (res) {
						if (res.confirm) {
							console.log('用户点击确定');
							uni.reLaunch({
								url:'../disembark/disembark'
							})
						} else if (res.cancel) {
							wx.closeWindow()
						}
					}
				});
			}
			this.list_api()
			this.friends_reinvestment_api()
			if (uni.getMenuButtonBoundingClientRect()) {
			      console.log('当前为小程序环境！');
				  this.login_code()
			} else {
			      console.log('当前不是小程序环境！');
				  // this.version_api()
				  this.codes = 1
			}
		},
		onLoad() {
			uni.setNavigationBarColor({
				frontColor:"#ffffff",
				backgroundColor:"#cf4052",
			})
		},
		methods: {
			user_login_code_api() {
				var that = this
				uni.login({
				  provider: 'weixin', //使用微信登录
				  success: function (loginRes) {
					var datas = {
						code:loginRes.code,
					}
					that.$request(that.$Api.user_login_code_api,datas,"POST").then(res => {
						console.log('res',res)
						if (res.data.code == 0) {
							uni.setStorageSync('access_token', res.data.data.access_token);
							// uni.navigateBack()
							uni.reLaunch({
								url:'/pages/login/disembark/disembark'
							})
						} else {
							uni.showToast({
								title: res.data.msg,
								duration: 2000,
								icon: 'none'
							});
						}
					})
				  }
				});
			},
			coupons() {
				uni.navigateTo({
					url:'/pages/coupons/coupons'
				})
			},
			my_car() {
				console.log('1111')
				uni.navigateTo({
					url:'/pages/my_car/my_car'
				})
			},
			login_code() {
				var that = this
				that.$request(that.$Api.login_code, {
					access_token: uni.getStorageSync('access_token'),
					versions:'0',
				}, "POST").then(res => {
					that.codes = res.data.code
				})
			},
			friends_reinvestment_api() {
				var that = this
				that.$request(that.$Api.friends_reinvestment_api, {
					access_token: uni.getStorageSync('access_token'),
				}, "POST").then(res => {
					if (res.data.code == 0) {
						that.friends = Number(res.data.data.shop_percentages)
						console.log('that.friends',that.friends)
					} else {
						uni.showToast({
							title: res.data.msg,
							duration: 2000,
							icon: 'none'
						});
					}
				})
			},
			collect() {
				uni.navigateTo({
					url:'../collect/collect'
				})
			},
			sets_tap() {
				uni.navigateTo({
					url:'../sets_tap/sets_tap'
				})
			},
			announcement() {
				uni.navigateTo({
					url:'../news/newss'
				})
			},
			team_tap() {
				uni.navigateTo({
					url:'/pages/team/teams'
				})
			},
			plural_tap() {
				uni.navigateTo({
					url:'../plural_tap/plural_tap'
				})
			},
			set_tap() {
				uni.navigateTo({
					url:'../set_tap/set_tap'
				})
			},
			assets_tap(){
				uni.navigateTo({
					url:'../assets/assets'
				})
			},
			promotion() {
				uni.navigateTo({
					url:'/pages/promotion/promotion'
				})
			},
			order_tap(num) {
				uni.navigateTo({
					url:'/pages/order/order?key='+num
				})
			},
			record() {
				uni.navigateTo({
					url:'../record/record'
				})
			},
			tixian(money) {
				uni.navigateTo({
					url:'../tixian/tixian?money='+money
				})
			},
			//获取首页
			is_status_api() {
				var that = this
				uni.request({
					url: urlConfig + 'api/user/user',
					data:{
						access_token:uni.getStorageSync('access_token'),
					},
					method: 'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded'
					},
					success: (res) => {
						if (res.data.code == 0) {
							that.is_status = res.data.data.status
							that.is_lose = res.data.data.list.remark //失败原因
						} else if (res.data.code == -1) {	
						} else if(res.data.code == -1) {
							uni.reLaunch({
								url:'../disembark/disembark'
							})
						}else {
							uni.showToast({
								title: res.data.msg,
								duration: 2000,
								icon: 'none'
							});
						}
					}
				});
			},
			save_tap() {
				uni.navigateTo({
					url:'../save/save'
				})
			},
			voucher_tap() {
				uni.navigateTo({
					url:'../voucher/voucher'
				})
			},
			kefu() {
				var that = this
				uni.makePhoneCall({
				    phoneNumber: that.phone
				});
				// uni.showLoading({
				//     title: '加载中'
				// });
				// uni.request({
				// 	url: urlConfig + 'api/index/customer',
				// 	data:{
				// 		access_token:uni.getStorageSync('access_token'),
				// 	},
				// 	method: 'POST',
				// 	header: {
				// 		'content-type': 'application/x-www-form-urlencoded'
				// 	},
				// 	success: (res) => {
				// 		uni.hideLoading();
				// 		if (res.data.code == 0) {
				// 			uni.navigateTo({
				// 				url:'../customer/customer?link='+res.data.data.url
				// 			})
				// 		} else if (res.data.code == -1) {	
				// 			uni.reLaunch({
				// 				url:'../login/login'
				// 			})
				// 		} else {
				// 			uni.showToast({
				// 				title: res.data.msg,
				// 				duration: 2000,
				// 				icon: 'none'
				// 			});
				// 		}
				// 	}
				// });
				 // 预览图片
				//  if( that.customer != '' ) {
				// 	var arr = [that.customer]
				// 	uni.previewImage({
				// 		urls: arr,
				// 		longPressActions: {
				// 			itemList: ['发送给朋友', '保存图片', '收藏'],
				// 			success: function(data) {
				// 				console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
				// 			},
				// 			fail: function(err) {
				// 				console.log(err.errMsg);
				// 			}
				// 		}
				// 	});
				//  }else{
				// 	uni.showToast({
				// 		title: '暂无客服二维码',
				// 		duration: 2000,
				// 		icon: 'none'
				// 	});
				// }
			},
			customers_api() {
				var that = this
				uni.request({
					url: urlConfig + 'api/config/customers',
					data:{
						access_token:uni.getStorageSync('access_token'),
					},
					method: 'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded'
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 0) {
							if( res.data.data.customer != null ) {
								that.customer = res.data.data.customer
							}
							console.log('customer',that.customer)
						} else if (res.data.code == -1) {	
							uni.reLaunch({
								url:'../disembark/disembark'
							})
						} else {
							uni.showToast({
								title: res.data.msg,
								duration: 2000,
								icon: 'none'
							});
						}
					}
				});
			},
			tuijian() {
				var that = this
				uni.setClipboardData({
				data: that.code,
				success:function(data){
					 uni.showToast({
						 title: '复制成功',
						 duration: 1000,
						 icon:'none'
					 });
				}, fail:function(err){
				}, complete:function(res){
				} })
			},
			tiuchu() {
				var that = this
				uni.showModal({
					title: '提示',
					content: '是否确认退出当前账户？',
					success: function (res) {
						if (res.confirm) {
							uni.removeStorageSync('access_token');
							uni.removeStorageSync('is_token');
							uni.reLaunch({
								url:'/pages/login/disembark/disembark'
							})
							wx.closeWindow()
							console.log('用户点击确定');
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			},
			//获取首页
			list_api() {
				var that = this
				that.$request(that.$Api.user_person_api, {
					access_token: uni.getStorageSync('access_token'),
				}, "POST").then(res => {
					if (res.data.code == 0) {
						that.moneys = Number(res.data.data.list.static_integral) + Number(res.data.data.list.dynamic_integral)
						that.list_data = res.data.data.list
						that.vip = Number(res.data.data.list.vip)
						that.avatar_url = res.data.data.list.avatar_url
						that.code = res.data.data.list.code
						that.phone = res.data.data.list.phone
					} else {
						uni.showToast({
							title: res.data.msg,
							duration: 2000,
							icon: 'none'
						});
					}
				})
			},
			new_tap() {
				uni.navigateTo({
					url:'../new_tap/new_tap'
				})
			},
			//关于我们
			about() {
				var token = uni.getStorageSync('access_token')
				uni.navigateTo({
					url:'../about/about?token='+token
				})
			},
			//指南
			guide() {
				var token = uni.getStorageSync('access_token')
				uni.navigateTo({
					url:'../guide/guide?token='+token
				})
			},
			//地址
			address() {
				var token = uni.getStorageSync('access_token')
				uni.navigateTo({
					url:'/pages/data/data'
				})
			},
			//设置
			set() {
				uni.navigateTo({
					url:'../set/set'
				})
			},
			//签约
			my_sign() {
				var token = uni.getStorageSync('access_token')
				uni.navigateTo({
					url:'../my_sign/my_sign?token='+token
				})
			},
			//钱包
			my_wallet() {
				var token = uni.getStorageSync('access_token')
				uni.navigateTo({
					url:'../my_wallet/my_wallet?key=1'+'&token='+token
				})
			},
			//消息
			information() {
				var token = uni.getStorageSync('access_token')
				uni.navigateTo({
					url:'../information/information?token='+token
				})
			},
			//tabBar_tap
			tabBar_tap(num) {
				var token = uni.getStorageSync('access_token')
				if( num == 0 ) {
					//首页
					uni.reLaunch({
						url:'../index/index?token='+token
					})
				} else if( num == 1 ) {
					//我的分享
					uni.reLaunch({
						url:'../my_share/my_share?token='+token
					})
				} else if( num == 2 ) {
					//订单
					uni.reLaunch({
						url:'../my_order/my_order?token='+token
					})
				} else if( num == 3 ) {
					//我的
				}
			},
		}
	}
</script>















